package com.zysf.library_boot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zysf.library_boot.dto.ReaderLendDto;
import com.zysf.library_boot.entity.ReaderInfo;
import com.zysf.library_boot.service.ReaderInfoService;
import com.zysf.library_boot.mapper.ReaderInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 31161
* @description 针对表【reader_info(读者信息（包括登录账号密码等）)】的数据库操作Service实现
* @createDate 2024-12-24 10:03:23
*/
@Service
public class ReaderInfoServiceImpl extends ServiceImpl<ReaderInfoMapper, ReaderInfo>
    implements ReaderInfoService{

    @Autowired
    ReaderInfoMapper readerInfoMapper;

    @Override
    public IPage<ReaderLendDto> getReaderCustomLendList(Integer id, Page<ReaderLendDto> page) {
        return readerInfoMapper.selectReaderLendList(page, id);
    }
}




